package com.qingke.beSuper2.command;

import java.util.HashMap;
import java.util.Map;

import com.qingke.beSuper2.command.CommandFactory.CommandCode;
import com.qingke.beSuper2.command.impl.AskCommand;
import com.qingke.beSuper2.command.impl.ExitCommand;
import com.qingke.beSuper2.command.impl.HelpCommand;
import com.qingke.beSuper2.command.impl.LoginCommand;
import com.qingke.beSuper2.pojo.Player;

public class PlayerCommandFactory extends CommandFactory {

	private Player player;
	
	public PlayerCommandFactory (Player player) {
		this.player = player;
	}
	
	private static Map<CommandCode, Class<? extends Command>> commandMap = 
			new HashMap<>();
	
	static {
		commandMap.put(CommandCode.ASK, AskCommand.class);
		
	}
	@Override
	public Command buildCommand(CommandCode cmd) {
//		Command command = commandMap.get(cmd);
//		if ("ask".equalsIgnoreCase(cmd)) {
//			return new AskCommand(player);
//		}
		return null;
	}

}
